package com.example.mideaoem.data;


public class DataBodyQueryPower extends FactoryDataBody{
	
	static byte[] result = new byte[]{
			0x41, (byte)0x81, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
			0x00, 0x00, 0x00, 0x00, 0x01, 0x00};
	
	
	public DataBodyQueryPower(){
		result[4] = 0x00;
		result[3] = 0x44;
	}
	
	public DataBodyQueryPower(boolean ClearZero){
		result[4] = 0x01;
		result[3] = (byte)0x84;
	}
	
	@Override
	public byte[] toBytes() {
		// TODO Auto-generated method stub
		result[result.length-1] = (byte)getCRC(result.clone(), result.length-1);
		byte[] bytes = addQueryHead(result);
		return bytes;
	}

	@Override
	public Object toObject(byte[] bytes) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setDataBodyStatus(BaseDevice newStatus) {
		// TODO Auto-generated method stub
		
	}

}
